package com.oscar.web.dao;

import com.oscar.web.domain.ItemCFBookrecs;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;

/**
 * 定义一个接口访问数据库表(和数据库表打交道)
 */

public interface ItemCFBookrecsRepository extends Repository<ItemCFBookrecs, Integer> {

    //返回值 方法名 方法参数
    public Page<ItemCFBookrecs> findAll(Pageable pageable);

    public ItemCFBookrecs findByBookid(int bookid);

}
